/**
 *
 * app config in app
 *
 */

let config = {
    cookie_lang: 'lang', //option key of language
    api_prefix: 'api',// api prefix //api
    MENUS: { //菜单路由
        HOME: '', //首页
        CLASS: 'class_',
        NEWS: 'news',
        ACTIVITY: 'activity',
        NOTICE: 'notice',
        TODAY_TEACH: 'today_teach',
        HOMEWORK: 'homework',
        DUTY: 'duty',
        SCHEDULE: 'schedule',
    },
    Bottom:[
        {
            label: '首页',
            color: '#ff895b',
            icon: '../../imgs/nav/home_icon1.png',
            // url: Config.ABSOLUTE_MENU.HOME
        },
        {
            label: '班级',
            color: '#f1d04b',
            icon: '../../imgs/nav/home_icon2.png',
            // url: Config.ABSOLUTE_MENU.CLASS
        },
        {
            label: '新闻',
            color: '#4bb0f1',
            icon: '../../imgs/nav/home_icon3.png',
            // url: Config.ABSOLUTE_MENU.NEWS
        },
        {
            label: '活动',
            color: '#43b3b1',
            icon: '../../imgs/nav/home_icon4.png',
            // url: Config.ABSOLUTE_MENU.ACTIVITY
        },
        {
            label: '通知',
            color: '#33c16c',
            icon: '../../imgs/nav/home_icon5.png',
            // url: Config.ABSOLUTE_MENU.NOTICE
        },
        {
            label: '今日教学',
            color: '#f58981',
            icon: '../../imgs/nav/home_icon6.png',
            // url: Config.ABSOLUTE_MENU.TODAY_TEACH
        },
        {
            label: '作业',
            color: '#de81f5',
            icon: '../../imgs/nav/home_icon7.png',
            // url: Config.ABSOLUTE_MENU.HOMEWORK
        },
        {
            label: '值日表',
            color: '#6699cc',
            icon: '../../imgs/nav/home_icon8.png',
            // url: Config.ABSOLUTE_MENU.DUTY
        },
        {
            label: '课程表',
            color: '#cc9966',
            icon: '../../imgs/nav/home_icon9.png',
            // url: Config.ABSOLUTE_MENU.SCHEDULE
        },
    ],
    ABSOLUTE_MENU: {},
    role: {
        ADMIN: 1, //管理员
        TEACHER: 2, //老师
        STUDENT: 3, //学生
        PARENT: 4, //家长
    },
    CODE: {
        SUCCESS: '000000'
    },
    NUM_EN_CN: {
        1: {
            en: 'one',
            cn: '一'
        },
        2: {
            en: 'two',
            cn: '二'
        },
        3: {
            en: 'three',
            cn: '三'
        },
        4: {
            en: 'four',
            cn: '四'
        },
        5: {
            en: 'five',
            cn: '五'
        },
        6: {
            en: 'six',
            cn: '六'
        },
        7: {
            en: 'seven',
            cn: '七'
        },
        8: {
            en: 'eight',
            cn: '八'
        },
        9: {
            en: 'nine',
            cn: '久'
        },
        10: {
            en: 'ten',
            cn: '十'
        }
    }
};
Object.keys(config.MENUS).map((key, index)=> {
    config.ABSOLUTE_MENU[key] = `/${config.MENUS[key]}`
});
export default config;